# -*- coding: utf-8; mode: snippet -*-
# name: str.replace(regexp|substr, newSubStr|function)
# key: replace
# contributor: Chen Bin <chenbin.sh AT gmail>
# --
// swap words
$0.replace(/(\w+)\s+(\w+)/, '\$2, \$1');
